#!/bin/bash

read -p "enter a directory: " dir
ls "$dir" &>/dev/null && cd "$dir"
ls -l
